package com.sm.imlibrary.model.http;

import android.os.Parcel;
import android.os.Parcelable;

import com.sm.imlibrary.http.IMBaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * created by zhud on 2019/8/7
 */
public class MessageHttpBean extends IMBaseBean implements Parcelable,Serializable {
    public MessageDataBean data;

    public MessageHttpBean() {
    }

    protected MessageHttpBean(Parcel in) {
        super(in);
        data = in.readParcelable(MessageDataBean.class.getClassLoader());
    }

    public static final Creator<MessageHttpBean> CREATOR = new Creator<MessageHttpBean>() {
        @Override
        public MessageHttpBean createFromParcel(Parcel in) {
            return new MessageHttpBean(in);
        }

        @Override
        public MessageHttpBean[] newArray(int size) {
            return new MessageHttpBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeParcelable(data, flags);
    }
}
